package yyee.llee.mmee.pl190.host668

import android.app.Activity
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity

interface RouteJumpInterface {

    fun safeJump(key: String)

    fun safeJump(context: Context, key: String)

    fun safeJumpByKeyAndClass(key: String,clazz: Class<AppCompatActivity>)


    fun safeJumpByIntent(key: String,intent: Intent)

    fun safeJumpDispatcherIntent(key: String,intent: Intent)

    /**
     * 跳转intent
     * @param context
     * @param key
     * @param intent
     */
     fun realJumpByIntent(context: Context, key: String, intent: Intent)

     fun onJump(key: String, context: Context, intent: Intent)


    /**
     * 场景 ：  体外进入体内走开屏再走体内
     *
     * openApi 注册中心
     * inPage.put(PAGE_JIASU, NetAccelerateActivity.class);
     * inPage.put(PAGE_SAFE, NetDetectionActivity.class);
     * inPage.put(PAGE_TEST_SPEED, NetSpeedActivity.class);
     * inPage.put(PAGE_CLEAN, RubishActivity.class);
     * inPage.put(PAGE_COOL, CoolActivity.class);
     * @param path
     * @param activity
     */
    fun registerOpenApi(path: String?, activity: Class<out AppCompatActivity?>?)

    /**
     * 跳转 体内功能页
     * @param activity
     * @param key
     */
    fun jumpWelcomInPageByKey(activity: Activity?, key: String)
}